<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>

<f:loadBundle basename="demo.bundle.Messages" var="msg" />

<html>
<head>
<title>Semantic CBR Code Search</title>
<style type="text/css">
.odd-row {
	background-color: #ECF3FE;
}

.even-row {
	background-color: #FCFFFE;
}

.active-row {
	background-color: #FFEBDA;
}

.cell {
	width: 200px;
	vertical-align: top;
}

.rsTitle {
	padding: 5px;
	font-weight: bold;
	font-variant: small-caps;
	background-color: #E0ECF8;
	background-repeat: repeat-x;
	background-position: center;
}

.rsPanel {
	top: auto;
}

.rsLabel {
	font-size: 12px;
}

.rsInput {
	size: 220px;
	border-style: solid;
	border-width: 1px;
}

.rsButton {
	border-width: 2px;
	border-style: outset;
	vertical-align: middle;
}
</style>
</head>
<body>
<f:subview id="codeSearhView">
	<a4j:form>
		<rich:panel>
			<h:panelGrid columns="2" width="100%">
				<!-- columna izquierda -->
				<h:panelGrid columns="1" width="90%">
					<h:inputTextarea id="txaFuente" cols="150"
						style=" width : 100%; height : 400px;" readonly="true"
						value="#{codeSearchBean.selectedSource}" />
				</h:panelGrid>
				<!-- columna derecha -->
				<h:panelGrid columns="1" width="10%">
					<a4j:commandButton id="botonCalificar" styleClass="rsButton" value="#{msg.csView_button_calificate}" action="#{codeSearchBean.listenerCalificate}" immediate="true" />
					<a4j:commandButton id="botonVolver" styleClass="rsButton" value="#{msg.csView_button_back}" action="#{codeSearchBean.clean}" immediate="true" type="reset" reRender="tabPanelBusqueda" />
				</h:panelGrid>
			</h:panelGrid>
		</rich:panel>
	</a4j:form>
</f:subview>
</body>
</html>

